<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let str="aaeeecdddf"
        let arr=str.split("")
        console.log(arr);
        let a=0
        let e=0
        let c=0
        let d=0
        let f=1
        let arrs=[]
        arr.forEach(function(v,i){
            if(v=="a"){
                a++
            }
            if(v=="e"){
                e++
            }
            if(v=="c"){
                c++
            }
            if(v=="d"){
                d++
            }
            if(v=="f"){
                f++
            }
           
        })
        console.log(arrs);
    </script>
</body>
</html>